/*

Summary:
Used to read and write ini file. It's a wrapper for Windows APIs.

Version:
0.0.2

LastUpdatedDate:
2012-09-21

*/

#pragma once

#include <string>


namespace Zaf {



class IniFile {

public:
	explicit IniFile(const std::wstring& path);

	int ReadInt(const wchar_t* section, const wchar_t* key) const;
	std::wstring ReadString(const wchar_t* section, const wchar_t* key) const;

	void WriteInt(const wchar_t* section, const wchar_t* key, int value);
	void WriteString(const wchar_t* section, const wchar_t* key, const std::wstring& value);

private:
	std::wstring m_path;
};


}